#ifndef PERSONBASE_H
#define PERSONBASE_H

#include "CommonDef.h"

class PersonBase
{
public:
	PersonBase(int id, PersonRights rights = RIGHT_INVALID);
	PersonBase(int id, const char* name, int namelen, PersonRights right = RIGHT_INVALID);
	PersonBase(const PersonBase &pb);
	virtual ~PersonBase() {}

	PersonRights getMyRights() {return m_rights;}
	int getId() {return m_id;}

	void setName(const char* name, int namelen);
	const char* getName() const {return m_name;}

	void display();

private:
	int m_id;
	PersonRights m_rights;
	char m_name[MAXLEN_NAME];
};

#endif // PERSONBASE_H
